﻿@model Db8.ViewModels.BrowseViewModel
@{
    ViewBag.Title = "Browse Tags";
}

<section class="content">
<div style="float:right">@Html.Partial("_Navigation")</div>
<div style="float:left">@Html.Partial("_Search")</div>
<div style="clear:both;"></div>

<div class="column">
<h4>Popular</h4>
@foreach (var item in Model.Popular)
{
    <div class="row">
    <a href="@Url.Action("Search", "Home", new { search = "\"" + item.Value + "\"" })"><span class="keyword">@item.Value</span></a>
    </div>
}
</div>
<div class="column">
<h4>Recent</h4>
@foreach (var item in Model.Recent)
{
    <div class="row">
    <a href="@Url.Action("Search", "Home", new { search = "\"" + item.Value + "\"" })"><span class="keyword">@item.Value</span></a>
    </div>
}
</div>

</section>
@section scripts {
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.min.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")"></script>
<script type="text/javascript" src="@Url.Content("~/Scripts/db8-ui.js")"></script>
<script>
</script>
}
